include "../model/TChannel.thrift"
include "../model/TSearchConfig.thrift"
include "../model/TQuery.thrift"
namespace java com.iqiyi.pps.epg.api.server.web.channel
 const i32 SPECIAL_TABLE_NO = -999
 service ChannelWebService {

     //测试demo
     i64 create(1:TChannel.TChannel entity);
     bool edit(1:TChannel.TChannel entity);
     TChannel.TChannel getById(1:i64 id);
     TChannel.TChannel getByQipuId(1:i64 qipuId);
     TChannel.TChannelPage search(1:TQuery.TPage page, 2:TQuery.TFilter filter);
     bool saveLogo(1:i64 fatherId, 2:string url);
     bool checkUnique(1:i64 fatherId, 2:string name, 3:string universalCode);
     bool delChannel(1:i64 id);
     list<map<string, string>> getConfig(1:string type);
     bool saveLog(1:TChannel.TChannelLog entity);
     TChannel.TChannelLogPage getChannelLogList(1:TQuery.TPage page, 2:TQuery.TFilter filter);
     bool saveApiLog(1:string data);
     string getChannelCodeList(1:string key);
     bool carouselTableNo(1:i32 carouselTableNo, 2:i32 type, 3:string channelId);
     bool savePanoFormat(1:i64 channelId , 2:string panoFormat);
     TSearchConfig.TSearchConfig searchSearchConfig(1:i64 channelId);
     bool saveSearchConfig(1:TSearchConfig.TSearchConfig configData );
     list<TChannel.TChannel> suggestChannelInfo(1:i64 channelQipuId, 2:string channelName, 3:i32 liveType);
     i64 getProgramCount(1:i64 channelId);
     TChannel.TChannelPcaPage findChannel(1:string categoryId, 2:string channelId, 3:string channelName, 4:TQuery.TPage page,);
     bool saveThreeD(1:i64 channelId, 2:string jsonStr);

     list<TChannel.TChannelConfig> getAllConfigs();
     i32 saveConfig(1:TChannel.TChannelConfig entity);
     i32 editConfig(1:TChannel.TChannelConfig entity);
     list<TChannel.TChannelConfig> filterConfigs(1:string type,2:string status, 3:string descr);

 }
